﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Model
{
    public enum WebmasterRequestStatus {Voting, Finished};
    public class WebmasterRequest
    {
        public long Id { get; set; }
        public long CandidateId { get; set; }
        public string Skills { get; set; }
        public DateTime Date { get; set; }
        public WebmasterRequestStatus Status { get; set; }
        public bool WantsToReplyTickets { get; set; }
        public bool WantsToSetWebmasters { get; set; }
        public int PositiveVotes { get; set; }
        public int NegativeVotes { get; set; }
        public int GetTotalVotes
        {
            get { return PositiveVotes - NegativeVotes; }
        }
    }
}
